
export default [
        {
          path: '/',
          redirect: '/home'
        },
        {
          path: '/home',
          // component: resolve=>require('@/views/home/index.vue',resolve)
          component: import('../views/home/index.vue')
        },
        {
          path: '/classification',
          // component(resolve){
          //   require(['@/views/classification/index.vue'], resolve)
          // }
          component: import('../views/classification/index.vue')
        },
        {
          path: '/shoppingcart',
          // component(resolve){
          //   require(['@/views/shoppingcart/index.vue'], resolve)
          // }
          component: import('../views/shoppingcart/index.vue')
        },
        {
          path: '/mine',
          // component(resolve){
          //   require(['@/views/mine/index.vue'], resolve)
          // }
          component: import('../views/mine/index.vue')
        },
        {
          path: '/search',
          // component(resolve){
          //   require(['@/views/search/index.vue'], resolve)
          // }
          component: import('../views/search/index.vue')
        },
        {
          path: '/detail/:id',
          // component(resolve){
          //   require(['@/views/detail/index.vue'], resolve)
          // }
          component: import('../views/details/index.vue')

        },
        {
          path: '/pay',
          // component(resolve){
          //   require(['@/views/pay/index.vue'], resolve)
          // }
          component: import('../views/pay/index.vue')
        },
        {
          path: '/error/404',
          // component(resolve){
          //   require(['@/views/error/404.vue'], resolve)
          // }
          component: import('../views/error/404.vue')
        },
        {
          path: '/error/110',
          // component(resolve){
          //   require(['@/views/error/110.vue'], resolve)
          // }
          component: import('../views/error/110.vue')
        }
]
